 // 请求zip文件
 getZipSensorImage = async (path) => {
  let _this = this;
  return new Promise((resolve) => {
    
    // eslint-disable-next-line global-require
    const JSZip = require('jszip');
    fetch('https://wrdata-test.s3.cn-northwest-1.amazonaws.com.cn/xuqing_test/thumb_compressed/camera_0-2.zip')   
    .then(function (response) {                      
        if (response.status === 200 || response.status === 0) {
            return Promise.resolve(response.blob());
        } else {
            return Promise.reject(new Error(response.statusText));
        }
    })
    .then(JSZip.loadAsync)                            
    .then(function (zip) {
     
      let files = Object.keys(zip.files); 
     
      const getArray = async () => {
        // 异步的
        // eslint-disable-next-line no-plusplus
        for(let i = 0;i < files.length; i++){
          // eslint-disable-next-line no-loop-func
          await zip.file(files[i]).async('blob').then(res => {
            const tmpImage = new Image();
            tmpImage.src = URL.createObjectURL(res);
            const splitNumber = files[i].split('.')[0].split('_');
            const left = splitNumber[0];
            const right = splitNumber[1];
           
            // eslint-disable-next-line no-new
            new Promise((fn1,fn2) => {
              tmpImage.onerror = () => {
                _this.sensorImageTopicPreloadedImages[left][right] = { image: tmpImage,size: res.size };
                fn1(tmpImage)
              }
              tmpImage.onload = () => {
                _this.sensorImageTopicPreloadedImages[left][right] = { image: tmpImage,size: res.size };
                fn1(tmpImage)
              }
            }).then((image) => {
              if (!_this.imageSize.imageWidth && image.width) {
              
                _this.imageSize = {
                  imageWidth: image.width,
                  imageHeight: image.height,
                }
              }
              console.log('图片：',`${left}-${right}`)
            })
          })
        }
      };
      const result = getArray();
      resolve(result)
    })
    .catch(() => {
     message.error('压缩包获取失败！')
    })
  })
}